Design and Run Reports
The Reports page in Quest Data Modeler lets you create, run, and export reports for models stored in the Quest erwin Mart Portal and for models selected in Quest Data Modeler. Define a report once, save its properties, and then run or export it whenever you need current information.
Model-level reports use a model that you select when you run the report. A model-level report is not tied to one model, so you can define it once and run it on any compatible model.
Mart reports query the Mart directly and apply the selected filters and properties. They don't require an open model and can report on multiple models in the Mart.
Note: For Mart reports, your report coverage is determined by your Mart permissions.
Understand Reports
Before you create a report, learn how reports are defined, which models you can run a report on, and how QDM selects the model for a run.
Report Definitions
A report definition is the saved set of choices that describes a report. It includes the report subject, the selected properties, the filters, the report title, header, and footer, and the page setup options for PDF exports. The definition does not store the results. Each time you run the report, QDM queries the current information and displays new results.
A model-level report definition is independent of any single model. The properties that you select describe what to report on, and the model that you choose determines the data that appears in the results. This means that you can build a report once and reuse it on different models instead of rebuilding it for each model. You can also set a model as the default model.
Default Model, One-Off Model, and No Default
A model-level report can handle the model in one of three ways:
-
Default model: The model that the report runs on unless you select another one. The default model is optional and is saved with the report.
-
One-off model: A model that you select in the Run on field for the current session only. A one-off model does not change the report and is not saved.
-
No default: A report can be created without a default model. You are prompted to select a model each time you run the report. Reports that you import from an erwin DM template, or add from the report library, always start with no default.
Compatible Models
A report can run only on a model whose model type can produce the type of the report. The following table lists the report types that each model type can run.
| Model Type | Report Types It Can Run |
|---|---|
| Logical | Logical |
| Physical | Physical |
| Logical/Physical | Logical, Physical, and Logical/Physical |
| Conceptual | Conceptual |
Database-Specific Properties
Conceptual and Logical reports use the same properties and filters regardless of the database. Reports run consistently across all supported models.
The properties and filters available in a Physical or Logical/Physical report depend on the model's target database. For example, a property available for Snowflake might not be available for PostgreSQL. If a report uses properties or filters that the model doesn't support, those items are omitted from the results. They remain in the report definition and become available again when you run the report on a compatible model.
Explore the Reports Page
To open the Reports page, select
in the left navigation bar. The first time you open the Reports page, no reports are defined and the workspace is empty.
The workspace includes the following areas and report types:
-
Report subjects: A report subject determines what a report is about and which properties are available to include in it. Report subjects appear when you open an existing report or create a new report.
-
Mart reports: For a Mart report, the properties are queried from the Mart. You can create following reports:
-
Cross Model Report: Reports on the design content of the models stored in the Mart. Use this subject to query and compare modeling objects across one or more models, such as Attributes/Columns, Design Layer Lineages, Domains, Entities/Tables, Naming Standard, Relationships, Subject Areas, User Defined Properties (UDP), and Views.
-
Mart Administrative Report: Reports on the administration and usage of the Mart itself. Use this subject to query operational and governance information, such as Libraries, Locks, Models, Profiles, Sessions, User Logs, User Permissions, and Users.
-
-
Model-level reports: Select a model to see the report types available for it. Depending on the model, you can create a Logical, Physical, or Logical/Physical report and select properties.
-
-
Saved reports: This area includes the reports that you have already created and saved, and any reports that have been shared with you. A report that has no default model displays a No default tag.
-
Import: Create a report from an erwin DM report template file or from the report library. For more information, refer to the Import a Report Template section.
Create a Model-Level Report
Use a model-level report to review the content of a specific model. The report types, report subjects, and properties that are available depend on the model that you select.
For example, you need a data dictionary that includes entities in the Sales Billing 2 model, with its attributes and their definitions. You can share this report with the ETL or development team before they build data loads.
To create a model-level report, follow these steps:
-
On the QDM Overview page, in the left navigation bar, select
. The Reports page opens.
-
Select New Report.
The New report dialog appears.
Models that are open in the modeler are listed under Open in the modeler, and the active model is marked as Active. Each model is listed with its model type.
-
Search for or select the model that you want to report on. For example, Sales Billing 2.
-
Under Report type, select the report type. For example, Logical/Physical.
-
In the Report name field, enter a name for the report. For example, ETL Handoff Data Dictionary.
-
Select Create.
The report page opens. The Report Subjects pane lists the subjects that are available for the selected model and report type, such as Domain, Entity, Relationship, and Subject Area.
-
In the Report Subjects pane, select the report subject. For example, Entity/Table.
-
Select the subject properties to include in the report. For example, for an entity or table, select Data Retention Time (In Days) and Copy Grants. For an attribute or column, select Name and Definition.
-
[Optional] Select a filter to limit the results. For example, Selected in Current Diagram. This filter lets you select entities or tables in Modeler for the report. Open the model in Modeler, and select required entities or tables, and then return to the Reports page.
-
Select Save.
The report is added to the Saved Reports section, and its properties and default model are stored with it. The Run on field displays the model that you selected, marked as (default).
-
Select Run.
The report results are displayed in the Results pane. The status bar displays the report name, report type, and the number of rows and objects.
The run options for a model-level report are the same as for a Mart report. For example, you can run the report in a paginated format or load all rows in a single view. For more information, refer to the Run a Report section.
Review the results, and then export the report to share it with the ETL or development team. For more information, refer to the Export a Report section.
Run a Report on a Different Model
Use the Run on field to run a model-level report on any compatible model without changing the report. The field is located immediately to the left of Run and displays the model name that the report will run on. Use this option to run the same report on several compatible models and review their results.
To run a report on a different model, follow these steps:
-
Open the model-level report that you want to run.
-
Select Run on to open the list of available models.
The list opens with the default model at the top and a Search models box.
Under each model, the list displays how well the model matches the report:
-
Clean match: Everything that the report selects exists on that model.
-
N columns won't be available, or N filters won't be available: Some selected properties or filters do not exist on that model. Hover over the text to see the list.
-
This model doesn't have the report's subject: The model has nothing of the report's subject type.
Models that cannot produce the report type are unavailable and display the reason. For example, a Conceptual model cannot produce a Physical report.
-
-
[Optional] In the Search models box, enter part of a model name to filter the list.
-
Select the model that you want to run the report on.
The Run on field displays the model name with (not default). Reset appears next to the field, and Make default appears if you own the report. The report is not marked as modified.
-
Select Run.
The report results are displayed in the Results pane.
The results bar displays Results from followed by the model name. If the model does not provide some of the selected properties or filters, the bar also displays how many are not available, and the results leave them out.
-
[Optional] To return to the default model, select Reset.
The Run on field diplays the default model with (default) after the model name, and Reset and Make default disappear.
A one-off model applies to the current session only. Selecting a one-off model is not an unsaved change, so it does not trigger the unsaved changes prompt.
Note: If you are not the owner of a shared report, you can select a one-off model and use Reset, but you cannot make the model the default.
Change the Default Model of a Report
The owner of a report can make a different model the default. The report then runs on that model unless you select another one. Changing the default model does not remove any selected properties or filters from the report.
To change the default model, follow these steps:
-
In the Run on field, select the model that you want to use as the default.
The Run on field displays the model name with (not default), and the Reset and Make default options appear.
-
Select Make default.
The Run on field displays the model name with (default, unsaved). The report is marked as modified.
-
Select Save.
The report is saved. The Run on field displays the model name with (default). To remove the default model, select Remove default from the Run on list.
Change the Type of a Report
You can change the type of a model-level report if the model supports more than one type. For example, a Logical/Physical model supports the Logical, Physical, and Logical/Physical types. For a report with no default, the types follow the model that you select in the Run on field.
When you change the type, QDM keeps the selected properties and filters that also exist in the new type and removes the ones that do not. Revert type restores the original type together with everything that the change removed.
To change the type of a report, follow these steps:
-
Open the report, and then open the Type list.
The list displays the report types that the model can produce.
-
Select the new type. For example, Logical.
The properties tree switches to the new type. Properties that exist only in the previous type are removed. Revert type appears next to the Type list, and the report is marked as modified.
-
Select Save to keep the new type.
Export a Model-Level Report as an erwin DM Template
You can save a model-level report as an erwin DM report template (.erpt) file. The file does not name any model, so anyone can import it into Quest Data Modeler or erwin Data Modeler and run it on their own models.
To export a report as a template, follow these steps:
-
Open the model-level report, and then select the down arrow next to Export.
The menu lists Save as erwin DM template (.erpt).
Note: The Save as erwin DM template (.erpt) option is unavailable if the report has no report subject or nothing is selected, and for Mart reports.
-
Select Save as erwin DM template (.erpt).
A file named after the report, with the .erpt extension, downloads.
Import a Model-Level Report Template
You can create a model-level report from an erwin DM report template. The template can come from a file that you saved in Quest Data Modeler or in erwin Data Modeler, or from the report library. The new report has no default model, so it asks you for a model each time that you run it.
To import a template from the report library or a file, follow these steps:
-
On the Reports page, in the Saved reports area, select Import.
The menu lists options:
-
Select one of the following:
-
From the report library
The Report library dialog appears.
-
Select a category from the following options:
-
Model Reports
-
Model Validation Reports
-
NoSQL
Template options vary depending on the category you select.
-
-
Select a template. For example, Attributes Reports - Default Domain.
-
Select Add report.
-
-
From a file, and then select an erwin DM (.erpt) file.
The new report opens and appears in the Saved reports. After importing the template, select the model to use for the report.
-
Create a Mart Report
To create a Mart report, follow these steps:
-
On the QDM Overview page, in the left navigation bar, select
. The Reports page opens.
-
Select New Report.
The New Report dialog appears.
-
Under the What should the report read? list, select Mart.
-
In the Report name field, enter the report name. For example, SDI Analysis Report.
-
Select Create.
The report is saved and displayed in the Saved Reports section.
-
On the Report page, select the report object. For example, under Cross Model Report, select Attributes/Columns.
-
Select the properties that you want to include in the report. For example, Name, Model Name, Physical Data type, Physical Name, and SDI.
The available properties depend on the selected subject and object, and are retrieved from the Mart.
-
Select additional filters. For example, select Specify Model Name at Run Time to choose models when you run the report.
-
Expand Properties to open the Page setup and Properties pane.
-
Configure the following properties:
- Title: Specifies the report title
-
Description: Specifies the description of the report
-
Headers and footers: Specifies the header and footer text that is added to each page of a PDF export
-
Scroll down to view and configure the following page setup options:
-
Paper: Specifies the default page size to use when exporting the report to a PDF file
-
Orientation: Specifies the orientation to use when exporting the report to a PDF file
-
Table of contents: Specifies whether the table of contents is included in a PDF file
-
Index: Specifies whether the index section is included in a PDF file
-
-
Select Save.
The report is added to the Saved Reports section, and its properties are stored with it.
Run a Report
Run a saved report to query current information and view the results. Mart reports send the selected properties and filters to the Mart. Model-level reports query the model shown in the Run on field, using the report type, properties, and filters that you configured.
Mart report results reflect the current state of the models in the Mart, regardless of which models are open in the modeler. A model-level report runs on its default model unless you select another model for the run, or on the model that you choose if the report has no default.
Select Run to display the report in a paginated format. To display all rows in a single, scrollable view, select the down arrow next to Run, and then select Run and load all rows.
If you configured a filter with the Specify at Run Time option when creating the report, the Filter Values dialog appears when you run the report. Select the required model and attribute values, and then select Run to generate the report.
The report results are displayed in the Results pane.
View a Report
After you run a report, the results appear in the Results pane. You can change how the results are displayed without changing the saved report definition. The status bar at the bottom of the Results pane displays the report name, type, number of rows, number of columns, and the report subject.
When you view a report, you can do any of the following:
-
Switch between paged and full views: Select Paged to display the results one page at a time, or select All rows to display every row in a single, scrollable view. The default view is Paged.
-
Group rows: Drag one or more column headers to the grouping bar above the results to group rows by those columns, such as Model Name or Domain Name. Collapse or expand the groups to hide or show the grouped results. To remove a grouping, select
on the grouping chip. This option is available in the All Rows view only.
-
Navigate between pages: In the Paged view, use the Previous and Next controls at the bottom of the Results pane to move through the pages of results. Use
and
controls to jump directly to the first or last page of results.
-
Show or hide columns: Select
, and then select or deselect the check boxes to control which columns appear in the results.
These display changes affect only the current view. They do not change the saved report definition or the properties.
Modify a Report
If you need to change the selected properties after running a report, you can modify the report properties and save the report again. The updated report definition is stored with the report and is used the next time you run or export it.
To modify a report:
-
On the Reports page, select Edit Selection.
The Properties pane opens.
-
Add or remove report properties as required, and then select Save.
Run the report again to view the updated results.
Save a Copy of a Report
Use Save a Copy to create a duplicate of a report that you can modify independently of the original report. This option is useful when you want to:
-
Create a variation of your own report
-
Modify a report that was shared with you and save it as a new report
To save a copy of a report, follow these steps:
-
Open the report that you want to duplicate.
-
Select Save a copy.
The Save a copy dialog opens.
-
In the Report name field, enter a name for the copy. For example, SDI Analysis Report V2.
-
Select Save a copy.
A new report is created with the same definition as the original. The copy is private to you and opens so that you can edit it, and you can modify it without affecting the original report.
Export a Report
You can export a report so that you can save or distribute the results. When you export a report, you can override some of the saved report properties for that export without changing the report definition. For example, if a report is saved with the table of contents and index turned off, you can include them for a single PDF export. The property that is saved with the report remains unchanged, so the next export uses the saved defaults again.
To export a report, follow these steps:
-
Open the report that you want to export. For example SDI Analysis Report.
The report opens.
-
Select Export.
-
[Optional] For mart reports, if the report includes runtime prompts, provide the filter values that you want to apply to the export, and then select Run. Otherwise, proceed to step 4.
-
Select one of the following formats.
-
Delimited text: Exports the report as a delimited text file that is downloaded as a .csv file with the following options:
-
Delimiter: Specifies the character that separates values. Select Comma, Tab, Space, or Other to define a custom delimiter
-
Text qualifier: Specifies the character, such as a double quote ("), that wraps values that contain a delimiter or a line break so that they are not split into separate columns
-
Remove duplicate rows: Excludes duplicate rows from the exported file
-
-
HTML: Exports the report as an HTML document. Select one of the following layouts:
-
Both: Exports both the tabular and hierarchical layouts, switchable within the document, using the same layout as erwin DM
-
Tabular only: Exports a single table, as shown in the grid
-
Hierarchical only: Exports a section per object, keeping the nesting
-
-
PDF: Exports the report as a PDF document, using the same layout as erwin DM, with a title page, the report, and selected options. Configure the following options:
-
Paper: Specifies the page size, such as A4, used for the export
-
Orientation: Specifies whether the pages are laid out in Portrait or Landscape orientation
-
Include: Specifies whether to include the Table of contents and the Index in the exported document
-
-
-
Select Export.
The report is exported in the selected format using the filters and properties that you specified. The saved report definition is unchanged.
Share or Delete a Report
In the Saved reports section, hover over a report name to display the actions that are available for that report.
To share a report, hover over the report name and select
. You can share a report with other members of your tenant. When you share a report, recipients can view and run it, but they cannot modify the original report.
To delete a report, select
.